Carbon


DeltaPoint

Header: Quickdraw.h Carbon status: Supported

Subtracts the coordinates of one point from another.

SInt32 DeltaPoint (
    Point ptA, 
    Point ptB
);
Parameter descriptions
ptA

A point, from whose coordinates are to be subtracted those that you specify in the ptB parameter.

ptB

A point, the coordinates of which are to be subtracted from those you specify in the ptA parameter.

function result

The result of subtracting the coordinates of the point you specify in the ptB parameter from the coordinates of the point specify in the ptA parameter.

DISCUSSION

To get the results of coordinate subtraction, you can instead use the SubPt function. Note, however, that the parameters in these two functions are reversed.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)